package ${package}.repository;

import com.njzxw.fs.commonutil.db.ZxwLangDriver;
import org.apache.ibatis.annotations.*;
import ${package}.bean.${className}Bean;


import java.util.List;
import java.util.Map;

@Mapper
public interface ${className}Repository {

    @Select("${queryPageSql}")
    @Lang(ZxwLangDriver.class)
    List<Map<String,Object>> queryPage(${className}Bean ${className_}Bean);

    @Select("${queryIdSql}")
    Map<String,Object> queryId(${className}Bean ${className_}Bean);

    @Update("${updateSql}")
    @Lang(ZxwLangDriver.class)
    Integer update(${className}Bean ${className_}Bean);

    @Delete("${deleteSql}")
    @Lang(ZxwLangDriver.class)
    Integer delete(${className}Bean ${className_}Bean);

    @Insert("${insertSql}")
    @Lang(ZxwLangDriver.class)
    @Options(useGeneratedKeys = true)
    Integer insert(${className}Bean ${className_}Bean);

}

